/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package east2west.interfaces;

import east2west.dto.TourDTO;
import java.util.ArrayList;

/**
 *
 * @author thanhluan
 */
public interface TourInterface {

    ArrayList<TourDTO> readByAll();

    ArrayList<TourDTO> findByName(String tourName);

    ArrayList<TourDTO> findByDeparture(String departure);

    ArrayList<TourDTO> findByDestination(String destination);

    ArrayList<TourDTO> findByDuration(int duration);

    TourDTO findById(int id);

    ArrayList<TourDTO> findByDto(TourDTO dto);

    ArrayList<TourDTO> readByTopTour();

    int create(TourDTO dto);

    boolean update(TourDTO dto);

    boolean delete(TourDTO dto);

    boolean delete(int id);

    ArrayList<TourDTO> findByTourShowTop();

    ArrayList<TourDTO> findByTourShowTopMenu();

    ArrayList<TourDTO> findByOrtherTour(int id);
}
